Optimal. Leaf size=158 \[ \frac{6 b^3 n^3 \sin \left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^4 n^4+10 b^2 n^2+1\right )}-\frac{\cos ^3\left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^2 n^2+1\right )}-\frac{6 b^2 n^2 \cos \left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^4 n^4+10 b^2 n^2+1\right )}+\frac{3 b n \sin \left (a+b \log \left (c x^n\right )\right ) \cos ^2\left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^2 n^2+1\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0482041, antiderivative size = 158, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {4488, 4486} \[ \frac{6 b^3 n^3 \sin \left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^4 n^4+10 b^2 n^2+1\right )}-\frac{\cos ^3\left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^2 n^2+1\right )}-\frac{6 b^2 n^2 \cos \left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^4 n^4+10 b^2 n^2+1\right )}+\frac{3 b n \sin \left (a+b \log \left (c x^n\right )\right ) \cos ^2\left (a+b \log \left (c x^n\right )\right )}{x \left (9 b^2 n^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4488
Rule 4486
Rubi steps
\begin{align*} \int \frac{\cos ^3\left (a+b \log \left (c x^n\right )\right )}{x^2} \, dx &=-\frac{\cos ^3\left (a+b \log \left (c x^n\right )\right )}{\left (1+9 b^2 n^2\right ) x}+\frac{3 b n \cos ^2\left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{\left (1+9 b^2 n^2\right ) x}+\frac{\left (6 b^2 n^2\right ) \int \frac{\cos \left (a+b \log \left (c x^n\right )\right )}{x^2} \, dx}{1+9 b^2 n^2}\\ &=-\frac{6 b^2 n^2 \cos \left (a+b \log \left (c x^n\right )\right )}{\left (1+10 b^2 n^2+9 b^4 n^4\right ) x}-\frac{\cos ^3\left (a+b \log \left (c x^n\right )\right )}{\left (1+9 b^2 n^2\right ) x}+\frac{6 b^3 n^3 \sin \left (a+b \log \left (c x^n\right )\right )}{\left (1+10 b^2 n^2+9 b^4 n^4\right ) x}+\frac{3 b n \cos ^2\left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{\left (1+9 b^2 n^2\right ) x}\\ \end{align*}
Mathematica [A] time = 0.45156, size = 122, normalized size = 0.77 \[ -\frac{3 \left (9 b^2 n^2+1\right ) \cos \left (a+b \log \left (c x^n\right )\right )+\left (b^2 n^2+1\right ) \cos \left (3 \left (a+b \log \left (c x^n\right )\right )\right )-6 b n \sin \left (a+b \log \left (c x^n\right )\right ) \left (\left (b^2 n^2+1\right ) \cos \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+5 b^2 n^2+1\right )}{4 x \left (9 b^4 n^4+10 b^2 n^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.066, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( \cos \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) ^{3}}{{x}^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.23463, size = 1342, normalized size = 8.49 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.508676, size = 304, normalized size = 1.92 \begin{align*} -\frac{6 \, b^{2} n^{2} \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) +{\left (b^{2} n^{2} + 1\right )} \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{3} - 3 \,{\left (2 \, b^{3} n^{3} +{\left (b^{3} n^{3} + b n\right )} \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2}\right )} \sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{{\left (9 \, b^{4} n^{4} + 10 \, b^{2} n^{2} + 1\right )} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b \log \left (c x^{n}\right ) + a\right )^{3}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]